Optimal. Leaf size=83 \[ -\frac{b^3}{2 a^4 d (a \cos (c+d x)+b)^2}+\frac{3 b^2}{a^4 d (a \cos (c+d x)+b)}+\frac{3 b \log (a \cos (c+d x)+b)}{a^4 d}-\frac{\cos (c+d x)}{a^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.133559, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {3872, 2833, 12, 43} \[ -\frac{b^3}{2 a^4 d (a \cos (c+d x)+b)^2}+\frac{3 b^2}{a^4 d (a \cos (c+d x)+b)}+\frac{3 b \log (a \cos (c+d x)+b)}{a^4 d}-\frac{\cos (c+d x)}{a^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2833
Rule 12
Rule 43
Rubi steps
\begin{align*} \int \frac{\sin (c+d x)}{(a+b \sec (c+d x))^3} \, dx &=-\int \frac{\cos ^3(c+d x) \sin (c+d x)}{(-b-a \cos (c+d x))^3} \, dx\\ &=\frac{\operatorname{Subst}\left (\int \frac{x^3}{a^3 (-b+x)^3} \, dx,x,-a \cos (c+d x)\right )}{a d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{x^3}{(-b+x)^3} \, dx,x,-a \cos (c+d x)\right )}{a^4 d}\\ &=\frac{\operatorname{Subst}\left (\int \left (1-\frac{b^3}{(b-x)^3}+\frac{3 b^2}{(b-x)^2}-\frac{3 b}{b-x}\right ) \, dx,x,-a \cos (c+d x)\right )}{a^4 d}\\ &=-\frac{\cos (c+d x)}{a^3 d}-\frac{b^3}{2 a^4 d (b+a \cos (c+d x))^2}+\frac{3 b^2}{a^4 d (b+a \cos (c+d x))}+\frac{3 b \log (b+a \cos (c+d x))}{a^4 d}\\ \end{align*}
Mathematica [A] time = 0.399499, size = 111, normalized size = 1.34 \[ \frac{2 a^2 b \cos ^2(c+d x) (3 \log (a \cos (c+d x)+b)-2)-2 a^3 \cos ^3(c+d x)+b^3 (6 \log (a \cos (c+d x)+b)+5)+4 a b^2 \cos (c+d x) (3 \log (a \cos (c+d x)+b)+1)}{2 a^4 d (a \cos (c+d x)+b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 96, normalized size = 1.2 \begin{align*} -{\frac{b}{2\,d{a}^{2} \left ( a+b\sec \left ( dx+c \right ) \right ) ^{2}}}+3\,{\frac{b\ln \left ( a+b\sec \left ( dx+c \right ) \right ) }{d{a}^{4}}}-2\,{\frac{b}{d{a}^{3} \left ( a+b\sec \left ( dx+c \right ) \right ) }}-{\frac{1}{d{a}^{3}\sec \left ( dx+c \right ) }}-3\,{\frac{b\ln \left ( \sec \left ( dx+c \right ) \right ) }{d{a}^{4}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.961331, size = 117, normalized size = 1.41 \begin{align*} \frac{\frac{6 \, a b^{2} \cos \left (d x + c\right ) + 5 \, b^{3}}{a^{6} \cos \left (d x + c\right )^{2} + 2 \, a^{5} b \cos \left (d x + c\right ) + a^{4} b^{2}} - \frac{2 \, \cos \left (d x + c\right )}{a^{3}} + \frac{6 \, b \log \left (a \cos \left (d x + c\right ) + b\right )}{a^{4}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.88912, size = 304, normalized size = 3.66 \begin{align*} -\frac{2 \, a^{3} \cos \left (d x + c\right )^{3} + 4 \, a^{2} b \cos \left (d x + c\right )^{2} - 4 \, a b^{2} \cos \left (d x + c\right ) - 5 \, b^{3} - 6 \,{\left (a^{2} b \cos \left (d x + c\right )^{2} + 2 \, a b^{2} \cos \left (d x + c\right ) + b^{3}\right )} \log \left (a \cos \left (d x + c\right ) + b\right )}{2 \,{\left (a^{6} d \cos \left (d x + c\right )^{2} + 2 \, a^{5} b d \cos \left (d x + c\right ) + a^{4} b^{2} d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin{\left (c + d x \right )}}{\left (a + b \sec{\left (c + d x \right )}\right )^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33973, size = 104, normalized size = 1.25 \begin{align*} -\frac{\cos \left (d x + c\right )}{a^{3} d} + \frac{3 \, b \log \left ({\left | -a \cos \left (d x + c\right ) - b \right |}\right )}{a^{4} d} + \frac{6 \, a b^{2} \cos \left (d x + c\right ) + 5 \, b^{3}}{2 \,{\left (a \cos \left (d x + c\right ) + b\right )}^{2} a^{4} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]